Title Banner


Technical Q&A's


NW 16 - Getting Records From the OCE Catalog Manager (15-Sept-95)


Q When we use the DirFindRecordGet function, we get the message kOCEInvalidCommand (-1501). Is there another way to get all records from a given catalog?

A The catalog you are attempting to get record information about does not support the DirFindRecordGet function (few out there actually do). To check whether or not a particular catalog supports this function, you need to first call DirGetDirectoryInfo() and check the features flags that are returned. Check the kSupportsFindRecordBit (see Inside Macintosh: AOCE Application Interface, p. 8-31) to see if this call is supported. If it is not supported, you'll have to use DirEnumerateGet instead to get all the records from a catalog.
You might want to look at the "DTS Catalog Peek" sample code on the Mac OS SDK (or at the AOCE Sample Code ), which uses the DirEnumerateGet call.

Technical Support
Technical Q&As
Previous Question | Contents | Next Question

Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help